bellmanFord_search

Performs a Bellman-Ford search on a graph

deprecated
void
bellmanFord_search
(
T
U
)

Parameters

graph GridWithWeights

The graph

source T

The starting position

distance U[T]

Output: Distance between node and starting position

predecessor T[T]

Output: A node's previous node

Meta